package java3_16.CatchMouse;

public class Mouse {
    private String name;
    private int power ;

    public Mouse(String name,int power){
        this.name = name;
        this.power = power;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPower() {
        return power;
    }

    public void setPower(int power) {
        this.power = power-50;
    }

    public int show(){
        System.out.println("老鼠当前的体力为："+power);
        return power;
    }
}
